import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class CustomLableChip extends StatelessWidget{
  String _text;
  Color _bgColor;
  Color _textColor;
  double _textSize;
  Color _lineColor;
  double _radius;

  CustomLableChip(String text,Color bgColor,
      {Color textColor = Colors.white,
        double textSize = 12,
        Color lineColor = Colors.transparent,
        double radius = 99,
      }){
    _text = text;
    _bgColor = bgColor;
    _textColor = textColor;
    _textSize = textSize;
    _lineColor = lineColor;
    _radius = radius;
  }

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.fromLTRB(10, 1, 10, 1),
      decoration: BoxDecoration(
        border: Border.all(color: _lineColor, width: 1.0),
        borderRadius: BorderRadius.circular(_radius),
        color: _bgColor,
      ),
      child: Text(_text,style: TextStyle(fontSize: _textSize,color: _textColor)),
    );
  }
}
